package com.hedl.practice.diyJava.junit.study_condition_test.test;

public class Config {

    public String getConfigFile(String filename){
        String os = System.getProperty("os.name").toLowerCase();
        if (os.contains("win")){
            return "C:\\"+filename;
        } else if (os.contains("mac")||os.contains("linux")||os.contains("unix")) {
            return "/usr/local"+filename;
        }
        throw new UnsupportedOperationException();
    }
}
